package model.qiaojie.demo1;

import model.qiaojie.demo1.AbstractMessage;
import model.qiaojie.demo1.MessageImplementor;

/**
 * 普通消息
 * @author 乔巴
 * @date 2021/5/8 9:58
 **/
public class CommonMessage extends AbstractMessage {

    public CommonMessage(MessageImplementor impl) {
        super(impl);
    }

    @Override
    public void sendMessage(String message, String toUser){
        //对于普通消息，什么都不干，直接调用父类的方法，把消息发送出去
        super.sendMessage(message, toUser);
    }

}